<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
<html:html>
<head>
<html:base />
<title><bean:message key="Application.Name"/></title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link href="css/formas.css" rel="stylesheet" type="text/css">
<link href="css/calendar.css" rel="stylesheet" type="text/css">
<style type="text/css">
#div_cal {
	background-color:#FF9933;
	position:absolute;
}
</style>
<script LANGUAGE="JavaScript" type="text/javascript" src="js/AnchorPosition.js"></script>
<script LANGUAGE="JavaScript" type="text/javascript" src="js/PopupWindow.js"></script>
<script LANGUAGE="JavaScript" type="text/javascript" src="js/date.js"></script>
<script LANGUAGE="JavaScript" type="text/javascript" src="js/CalendarPopup.js"></script>
<script language="javascript" type="text/javascript" src="js/util.js"></script>
<script language="javascript" type="text/javascript">
	var cal_fechas;
	cal_fechas = new CalendarPopup('div_cal');
	function fnc_validarForma(forma){
		var bol_retVal = true;
		var str_errores = "";
		
		if(Trim(forma.str_observaciones.value)==""){
			str_errores += " - <bean:message key='Observations.description'/> <bean:message key='errors.required'/>\n";
		}
		if(Trim(forma.str_fechaProxima.value)==""){
			str_errores += " - <bean:message key='Observations.nextDate'/> <bean:message key='errors.required'/>\n";
		}
		if(Trim(forma.str_lugarProximo.value)==""){
			str_errores += " - <bean:message key='Observations.nextPlace'/> <bean:message key='errors.required'/>\n";
		}
		var str_nextTime = Trim(forma.str_horaProxima.value);
		if(str_nextTime == ""){
			str_errores += " - <bean:message key='Observations.nextTime'/> <bean:message key='errors.required'/>\n";
		}else if(!TestString(str_nextTime)){
			str_errores += " - <bean:message key='Observations.nextTime'/> <bean:message key='errors.hour'/>\n";
		}
	
		if( str_errores != "" ){
			bol_retVal = false;
			alert( " <bean:message key='Application.Error(s)'/> : \n" + str_errores );
		}
		return bol_retVal;
	}
	function fnc_closeReview(){
		if('<bean:write name="bean_minuta" property="str_cerrada"/>' == '1'  || '<bean:write name="ses_usuario" property="per_minutas"/>' == '1'){
			var forma = document.forms[0];
			forma.str_fechaProxima.disabled = true;
			forma.str_observaciones.disabled = true;
			forma.str_lugarProximo.disabled = true;
			forma.str_horaProxima.disabled = true;
			forma.btn_aceptar.disabled = true;
			linkFecha =  document.getElementById("a_fechaProxima");
			linkFecha.href = "javascript:void(0);";
		}
	}
	<logic:present name="req_msg">
		alert("<bean:write name='req_msg'/>");
	</logic:present>
 </script>
</head>
<body onload="fnc_closeReview();">
<div id="div_cal"></div>
	<table cellpadding="0" cellspacing="0" class="formas">
    	<tr>
        	<td>
		   	<table cellpadding="0" cellspacing="0" class="barraNavegacion">
       			<tr>
       			<td><html:link action="/academy_welcome?action=selectAcademy" styleClass="barraNavegacion"><img src="images/icn_liga.gif" border="0"><bean:message key="AcademyWelcome.Init"/></html:link>
						<html:link action="/academy_list" styleClass="barraNavegacion"><img src="images/icn_liga.gif" border="0"><bean:message key="Menu.AcademyHeader"/></html:link>
						<html:link action="/draft_list.do?action=listDrafts" styleClass="barraNavegacion"><img src="images/icn_liga.gif" border="0"><bean:message key="Menu.Draft"/></html:link>
						<html:link action="/draft_edit?action=editDraft" styleClass="barraNavegacion"><img src="images/icn_liga.gif" border="0"><bean:message key="Agreement.draftEdit"/></html:link>
		        </td>
		    </table>
		  	<table cellpadding="0" cellspacing="0" class="titulo">
	        	<tr>
	            	<td class="iconos_imgs"><a href="mailto:<bean:message key="Application.mailto"/>"><img src="images/icn_correo.gif" width="18" height="18" border="0"></a></td>
	               	<td class="txt_titulo"><bean:message key="Observations"/></td>
		      	</tr>
          	</table>
			<table cellpadding="0" cellspacing="2" class="info_formas">
        		<tr> 
         			 <td class="formas-encabezado"><bean:message key="Document.draftData"/></td>
        		</tr>
        		<tr> 
          			<td >
          				<table cellpadding="0" cellspacing="2" class="info_titulo">
              				<tr> 
                				<td class=""><strong><bean:message key="Document.draft"/></strong></td>
                				<td class=""><bean:write name="bean_minuta" property="int_tk"/> </td>
              				</tr>
              				<tr> 
                				<td class=""><strong><bean:message key="Document.content"/> </strong></td>
                				<td class=""><bean:write name="bean_minuta" property="str_asunto"/></td>
              				</tr>
            			</table>
            		</td>
        		</tr>
        		<tr> 
          			<td>&nbsp;</td>
        		</tr>        		
        		<tr> 
          			<td>
          				<html:form action="/observation_save?action=saveObservation" onsubmit="return fnc_validarForma(this);">	           				  
          					<table cellpadding="0" cellspacing="2" class="info_formas"> 
	          					<tr> 
	          						<td colspan="2" class="formas-encabezado"><bean:message key="Observations"/></td>
	        					</tr>             					
    	         				<tr>    				
            	    				<td colspan="2" class=""><div align="center"><html:textarea property="str_observaciones" cols="70" rows="7"/></div></td>
              					</tr>
              					<tr> 
          							<td colspan="2" class="formas-encabezado"><bean:message key="Observations.nextMeeting"/></td>
        						</tr>
    	          				<tr> 
        	        				<td class=""><bean:message key="DraftList.Date"/></td>
            	    				<td class="">
										<html:text property="str_fechaProxima" size="12" maxlength="12" readonly="true"/>
										<a name="a_fechaProxima" href="javascript: cal_fechas.select(document.getElementById('str_fechaProxima'),'cal_img','yyyy/MM/dd');"  indexed="6">
												<img name="cal_img" src="images/img_calendario.gif" border="0" width="24" height="24" alt=""/>
										</a>
									</td>                					    
             					 </tr>
              					<tr> 
                					<td class=""><bean:message key="DraftManage.Place"/></td>
				                	<td colspan="3" class=""><html:text property="str_lugarProximo" size="50" maxlength="50"></html:text></td>
	              				</tr>
	              				<tr> 
                					<td class=""><bean:message key="StudyPlan.exams.Hour"/></td>
				                	<td colspan="3" class=""><html:text property="str_horaProxima" size="10"></html:text></td>
	              				</tr>
    	          				<tr> 
					                <td colspan="4"> 
            	    				    <div align="center"> 
                	      					<html:submit property="btn_aceptar"><bean:message key="Application.Accept" /></html:submit>
                    	  					<input type="reset" onclick="location.href='draft_edit.do?action=editDraft';" value="<bean:message key='Application.Cancel'/>"/>
                    					</div>
			        	    	    </td>
            		  			</tr>              					
    	        			</table>
        	    		</html:form>
            		</td>
        		</tr>
      		</table>
      	</td>
      </tr>
    </table>
 </body>
 </html:html>